3.350 \(\int \frac{\cosh ^3(x)}{1-\sinh ^2(x)} \, dx\)

Optimal. Leaf size=10 \[ 2 \tanh ^{-1}(\sinh (x))-\sinh (x) \]

[Out]

2*ArcTanh[Sinh[x]] - Sinh[x]

________________________________________________________________________________________

Rubi [A]  time = 0.0389517, antiderivative size = 10, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {3190, 388, 206} \[ 2 \tanh ^{-1}(\sinh (x))-\sinh (x) \]

Antiderivative was successfully verified.

[In]

Int[Cosh[x]^3/(1 - Sinh[x]^2),x]

[Out]

2*ArcTanh[Sinh[x]] - Sinh[x]

Rule 3190

Int[cos[(e_.) + (f_.)*(x_)]^(m_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]^2)^(p_.), x_Symbol] :> With[{ff = Free
Factors[Sin[e + f*x], x]}, Dist[ff/f, Subst[Int[(1 - ff^2*x^2)^((m - 1)/2)*(a + b*ff^2*x^2)^p, x], x, Sin[e +
f*x]/ff], x]] /; FreeQ[{a, b, e, f, p}, x] && IntegerQ[(m - 1)/2]

Rule 388

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_)), x_Symbol] :> Simp[(d*x*(a + b*x^n)^(p + 1))/(b*(n*
(p + 1) + 1)), x] - Dist[(a*d - b*c*(n*(p + 1) + 1))/(b*(n*(p + 1) + 1)), Int[(a + b*x^n)^p, x], x] /; FreeQ[{
a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && NeQ[n*(p + 1) + 1, 0]

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rubi steps

\begin{align*} \int \frac{\cosh ^3(x)}{1-\sinh ^2(x)} \, dx &=\operatorname{Subst}\left (\int \frac{1+x^2}{1-x^2} \, dx,x,\sinh (x)\right )\\ &=-\sinh (x)+2 \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\sinh (x)\right )\\ &=2 \tanh ^{-1}(\sinh (x))-\sinh (x)\\ \end{align*}

Mathematica [A]  time = 0.0095023, size = 14, normalized size = 1.4 \[ -2 \left (\frac{\sinh (x)}{2}-\tanh ^{-1}(\sinh (x))\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[Cosh[x]^3/(1 - Sinh[x]^2),x]

[Out]

-2*(-ArcTanh[Sinh[x]] + Sinh[x]/2)

________________________________________________________________________________________

Maple [B]  time = 0.028, size = 50, normalized size = 5. \begin{align*} -\ln \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+2\,\tanh \left ( x/2 \right ) -1 \right ) + \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}+\ln \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}-2\,\tanh \left ( x/2 \right ) -1 \right ) + \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-1} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cosh(x)^3/(1-sinh(x)^2),x)

[Out]

-ln(tanh(1/2*x)^2+2*tanh(1/2*x)-1)+1/(tanh(1/2*x)+1)+ln(tanh(1/2*x)^2-2*tanh(1/2*x)-1)+1/(tanh(1/2*x)-1)

________________________________________________________________________________________

Maxima [B]  time = 1.10616, size = 53, normalized size = 5.3 \begin{align*} \frac{1}{2} \, e^{\left (-x\right )} - \frac{1}{2} \, e^{x} - \log \left (2 \, e^{\left (-x\right )} + e^{\left (-2 \, x\right )} - 1\right ) + \log \left (-2 \, e^{\left (-x\right )} + e^{\left (-2 \, x\right )} - 1\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(x)^3/(1-sinh(x)^2),x, algorithm="maxima")

[Out]

1/2*e^(-x) - 1/2*e^x - log(2*e^(-x) + e^(-2*x) - 1) + log(-2*e^(-x) + e^(-2*x) - 1)

________________________________________________________________________________________

Fricas [B]  time = 1.49507, size = 275, normalized size = 27.5 \begin{align*} -\frac{\cosh \left (x\right )^{2} - 2 \,{\left (\cosh \left (x\right ) + \sinh \left (x\right )\right )} \log \left (\frac{2 \,{\left (\sinh \left (x\right ) + 1\right )}}{\cosh \left (x\right ) - \sinh \left (x\right )}\right ) + 2 \,{\left (\cosh \left (x\right ) + \sinh \left (x\right )\right )} \log \left (\frac{2 \,{\left (\sinh \left (x\right ) - 1\right )}}{\cosh \left (x\right ) - \sinh \left (x\right )}\right ) + 2 \, \cosh \left (x\right ) \sinh \left (x\right ) + \sinh \left (x\right )^{2} - 1}{2 \,{\left (\cosh \left (x\right ) + \sinh \left (x\right )\right )}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(x)^3/(1-sinh(x)^2),x, algorithm="fricas")

[Out]

-1/2*(cosh(x)^2 - 2*(cosh(x) + sinh(x))*log(2*(sinh(x) + 1)/(cosh(x) - sinh(x))) + 2*(cosh(x) + sinh(x))*log(2
*(sinh(x) - 1)/(cosh(x) - sinh(x))) + 2*cosh(x)*sinh(x) + sinh(x)^2 - 1)/(cosh(x) + sinh(x))

________________________________________________________________________________________

Sympy [B]  time = 2.30906, size = 129, normalized size = 12.9 \begin{align*} \frac{\log{\left (\tanh ^{2}{\left (\frac{x}{2} \right )} - 2 \tanh{\left (\frac{x}{2} \right )} - 1 \right )} \tanh ^{2}{\left (\frac{x}{2} \right )}}{\tanh ^{2}{\left (\frac{x}{2} \right )} - 1} - \frac{\log{\left (\tanh ^{2}{\left (\frac{x}{2} \right )} - 2 \tanh{\left (\frac{x}{2} \right )} - 1 \right )}}{\tanh ^{2}{\left (\frac{x}{2} \right )} - 1} - \frac{\log{\left (\tanh ^{2}{\left (\frac{x}{2} \right )} + 2 \tanh{\left (\frac{x}{2} \right )} - 1 \right )} \tanh ^{2}{\left (\frac{x}{2} \right )}}{\tanh ^{2}{\left (\frac{x}{2} \right )} - 1} + \frac{\log{\left (\tanh ^{2}{\left (\frac{x}{2} \right )} + 2 \tanh{\left (\frac{x}{2} \right )} - 1 \right )}}{\tanh ^{2}{\left (\frac{x}{2} \right )} - 1} + \frac{2 \tanh{\left (\frac{x}{2} \right )}}{\tanh ^{2}{\left (\frac{x}{2} \right )} - 1} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(x)**3/(1-sinh(x)**2),x)

[Out]

log(tanh(x/2)**2 - 2*tanh(x/2) - 1)*tanh(x/2)**2/(tanh(x/2)**2 - 1) - log(tanh(x/2)**2 - 2*tanh(x/2) - 1)/(tan
h(x/2)**2 - 1) - log(tanh(x/2)**2 + 2*tanh(x/2) - 1)*tanh(x/2)**2/(tanh(x/2)**2 - 1) + log(tanh(x/2)**2 + 2*ta
nh(x/2) - 1)/(tanh(x/2)**2 - 1) + 2*tanh(x/2)/(tanh(x/2)**2 - 1)

________________________________________________________________________________________

Giac [B]  time = 1.1708, size = 50, normalized size = 5. \begin{align*} \frac{1}{2} \, e^{\left (-x\right )} - \frac{1}{2} \, e^{x} + \log \left ({\left | -e^{\left (-x\right )} + e^{x} + 2 \right |}\right ) - \log \left ({\left | -e^{\left (-x\right )} + e^{x} - 2 \right |}\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(x)^3/(1-sinh(x)^2),x, algorithm="giac")

[Out]

1/2*e^(-x) - 1/2*e^x + log(abs(-e^(-x) + e^x + 2)) - log(abs(-e^(-x) + e^x - 2))